package com.cc.demo.feign.fallback;


import com.cc.demo.dto.TransactionMessage;
import com.cc.demo.feign.MessageCenterFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class MessageCenterFeignFallback implements MessageCenterFeign {

    @Override
    public TransactionMessage<?> prepareMessage(TransactionMessage<?> transactionMessage) {
        log.info("call failed with baseMsg:{}", transactionMessage);
        return TransactionMessage.builder().build();
    }
}
